﻿﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>传参数Link跳转</title>
	</head>

	<script>
		var url = location.search;
		url = url.substr(1)


		var data = "<a id=\"LinkA\" href =\""+ url +"\" >链接地址</a>";
		document.write(data);

		var el = document.getElementById('LinkA');
    	//el.target = '_new'; //指定在新窗口打开
		el.click();//触发打开事件
	</script>
	
	<body>
	</body>
 
</html>
